//
//  DYShopDecorateInputInfoCell.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/21.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYShopDecorateInputInfoCell.h"

@implementation DYShopDecorateInputInfoCell

-(void)dy_initUI
{
    [super dy_initUI];
    
    self.sideMargin=BILIWIDTH(10);
    [self xhq_noneSelectionStyle];
    
    self.titleLabel=({
        UILabel *label=[Utils labelWithTitleFontSize:12 textColor:[UIColor xhq_content] alignment:0];
        label.text=@"店铺简介";
        label;
    });
    
    self.infoTextView = ({
        UITextView *textView=[[UITextView alloc]init];
        textView.font=kFont(14);
        textView.textColor=[UIColor xhq_content];
        textView.backgroundColor=XHQHexColor(0xFAFAFA);
        textView.textContainerInset = UIEdgeInsetsMake(BILIWIDTH(10),BILIWIDTH(5),BILIWIDTH(10), BILIWIDTH(5));
        textView.dy_placeHolder=@"请输入店铺简介...（限500字以内）";
        [textView xhq_borderColor:[UIColor xhq_line] borderWidth:BILIWIDTH(0.7)];
        textView;
    });
    
    [self addSubview:self.titleLabel];
    [self addSubview:self.infoTextView];
    
    [self.titleLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(BILIWIDTH(10));
        make.top.equalTo(BILIHEIGHT(10));
    }];
    
    [self.infoTextView makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(BILIWIDTH(10));
        make.right.equalTo(BILIWIDTH(-10));
        make.top.equalTo(self.titleLabel.bottom).offset(BILIHEIGHT(7));
        make.bottom.equalTo(BILIHEIGHT(-10));
    }];
}

@end

